<?php

use yii\db\Migration;

/**
 * Class m230711_090719_rename_columns_in_project_table
 */
class m230711_090719_rename_columns_in_project_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->renameColumn('{{%project}}', 'contract_date_sign', 'date_start');
        $this->renameColumn('{{%project}}', 'contract_date_realize', 'date_realize');
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->renameColumn('{{%project}}', 'date_start', 'contract_date_sign');
        $this->renameColumn('{{%project}}', 'date_realize', 'contract_date_realize');
    }
    
}
